package com.shouxin.attendance.event;

public class EventCardNumber {

    private final String port;

    private final int state;

    private final String cardNumber;

    private final long timeStamp;

    public EventCardNumber(int state, String cardNumber, String port, long timeStamp) {
        this.state = state;
        this.cardNumber = cardNumber;
        this.port = port;
        this.timeStamp = timeStamp;
    }

    public int getState() {
        return state;
    }

    public String getCardNumber() {
        return cardNumber;
    }

    public String getPort() {
        return port;
    }

    public long getTimeStamp() {
        return timeStamp;
    }

    @Override
    public String toString() {
        return "EventCardNumber{" +
                "port='" + port + '\'' +
                ", state=" + state +
                ", cardNumber='" + cardNumber + '\'' +
                ", timeStamp=" + timeStamp +
                '}';
    }
}
